from .models import *
from rest_framework.serializers import ModelSerializer

# class Actorser(ModelSerializer):
#     class Meta:
#         model = Actor
#         fields="__all__"
#
# class Movieser(ModelSerializer):
#     class Meta:
#         model = Movie
#         fields="__all__"
#
# class Moviesers(ModelSerializer):
#     class Meta:
#         model = Movie
#         fields="__all__"
#
# class Teacherser(ModelSerializer):
#     class Meta:
#         model = Teacher
#         fields="__all__"

# class Studentser(ModelSerializer):
#     class Meta:
#         model = Student
#         fields="__all__"





class Courseser(ModelSerializer):
    class Meta:
        model = Course
        fields="__all__"

class Sclassser(ModelSerializer):
    course = Courseser(read_only=True,many=True)
    class Meta:
        model = Sclass
        fields="__all__"

class Stuser(ModelSerializer):
    class Meta:
        model = Stu
        fields="__all__"

class ShowStuser(ModelSerializer):
    cla = Sclassser()
    class Meta:
        model = Stu
        fields="__all__"